package com.sky.mapper;

import com.sky.QueryByPage.SetmealPageBean;
import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {
    List<Setmeal> getByPage(SetmealPageBean pageBean);
    @AutoFill(value = OperationType.INSERT)
    void add(Setmeal setmeal);

    Setmeal getById(Integer id);

    void status(Integer status, Integer id);

    void delete(List<Integer> ids);
    @AutoFill(value = OperationType.UPDATE)
    void update(Setmeal setmeal);
}
